package com.example.springboot.service;

import com.example.springboot.domain.Blog;
import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import java.util.List;
import java.util.Set;

public interface BlogService {
    public void add(Blog blog);

    public void deleteById(Integer id);

    public void deleteBatch(List<Integer> ids);

    public void updateById(Blog blog);

    public Blog selectById(Integer id);

    public List<Blog> selectAll(Blog blog);

    public void updateReadCount(Integer blogId);

    public PageInfo<Blog> selectLike(Blog blog, Integer pageNum, Integer pageSize);

    public PageInfo<Blog> selectCollect(Blog blog, Integer pageNum, Integer pageSize);

    public PageInfo<Blog> selectPage(Blog blog, Integer pageNum, Integer pageSize);

    PageInfo<Blog> selectUser(Blog blog, Integer pageNum, Integer pageSize);
}
